<%@page pageEncoding="UTF-8" contentType="text/html;charset=utf-8" errorPage="/commons/error.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='zh-CN' xml:lang='zh-CN' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>用户详情</title>
<style type="text/css">
table{font-size: 12px;}
</style>
</head>
<body>
<p><a href = '${ctx}/admin/user/list'>用户列表</a></p>
<hr />
<div>
	<table class="table table-striped">
		<tr>
			<td colspan="2"  align="center" style="border-style:solid; border-color: aqua;border-width: thin;">基本信息</td>
		</tr>
		<tr>
			<td><label for="id">ID</label></td>
			<td>${user.id }</td>
		</tr>
		<tr>
			<td><label for="phone">手机</label></td>
			<td>${user.phone }</td>
		</tr>
		<tr>
			<td><label for="user_name">用户名</label></td>
			<td>${user.user_name }</td>
		</tr>
		<tr>
			<td><label for="password">密码</label></td>
			<td>${user.password }</td>
		</tr>
		<tr>
			<td><label for="active">是否激活</label></td>
			<td><input type="checkbox" <c:if test="${user.active}">checked="checked"</c:if> disabled="disabled"/></td>
		</tr>
		<tr>
			<td><label for="register_time">注册时间</label></td>
			<td><fmt:formatDate value="${user.register_time}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
		</tr>
		
		
		<tr>
			<td colspan="4" align="center">
				<button onclick='location.href="${ctx}/admin/user/update/${user.id }"'>更新</button>
			</td>
		</tr>
	</table>
</div>

<script type="text/javascript" src="${ctx}/scripts/lottery.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#nav_user").addClass("active");
	})
	
</script>
</body>
</html>